package com.beiing.tianshuai.tianshuai.home.view;

import com.beiing.tianshuai.tianshuai.entity.IndexSearchListBean;
import com.beiing.tianshuai.tianshuai.entity.SearchResultBean;
import com.beiing.tianshuai.tianshuai.entity.TopSearchAndClassificationBean;

/**
 * Created by Jinda Yang on 2017/12/8.
 * Description : 全局搜索界面的view接口
 */

public interface ISearchView {

    /**
     * 获取热搜词和分类成功接口
     *
     * @param bean 热搜词和分类
     */
    void getTopSearchAndClassificationSuccess(TopSearchAndClassificationBean bean);

    /**
     * 获取热搜词和分类失败接口
     *
     * @param throwable 异常信息
     */
    void getTopSearchAndClassificationError(Throwable throwable);

    /**
     * 显示搜索结果
     *
     * @param searchResultBean 搜索结果
     */
    void showSearchResult(IndexSearchListBean searchResultBean);
}
